/*---------------------分别暴露----------------*/
/*export const PI = 3.1415926//导出变量
 export function fn1(){console.log("我是fn1")}
export class Person {
   information(name, age) {
       this.name = name;
       this.age = age;
   }
   sayHello() {
       console.log(`Hello,my name is ${this.name} and age is ${this.age}`);
   }
}*/
/*--------------统一暴露--------------------*/
const PI = 3.1415926//导出变量
function fn1() {
    console.log("我是fn1")
}

class Person {
    information(name, age) {
        this.name = name;
        this.age = age;
    }

    sayHello() {
        console.log(`Hello,my name is ${this.name} and age is ${this.age}`);
    }
}

export {
    PI,
    fn1,
    Person,
}

/*-------------------默认暴露-------------*/
function sum(a, b) {
    return a + b;
}
export default sum